<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>邮箱验证</title>
    <script src="../../res/js/jquery-3.4.1.min.js" charset="UTF-8" type="text/javascript"></script>
    <script src="../../res/js/Tools.js" charset="UTF-8" type="text/javascript"></script>
</head>
<body>
    <div id="demo" style="margin: 100px auto">
        验证中。。。
    </div>
<script type="text/javascript" charset="UTF-8">
    let userId = getQueryString("userId");
    $(function () {
        let url = "../../MyUserAction/mailVerify/"+userId;
        $.get(url,null,function (data) {
            if(data.data.data===1){
                $("#demo").html("验证成功3秒后跳转页面!");
                $('body').oneTime('3s','A',function(){
                    window.location.href = '../../admin/std/dist/views/index.html';
                });
            }else{
                $("#demo").html("好像发生了什么不得了的事前，要不等会儿再来？");
            }
        })
    })
</script>
</body>
</html>